package com.yearner.reviewplan.manage.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yearner.reviewplan.manage.system.entity.UserRouter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 路由表
 *
 * @author pengyg
 * @email ${email}
 * @date 2020-02-14 20:42:19
 */
@Mapper
public interface UserRouterDao extends BaseMapper<UserRouter> {

    List<UserRouter> selectRoot();
    List<UserRouter> selectNotLockRoot();

    List<UserRouter> getChildren(@Param("parentId") Integer routerId);
}
